<template>
  <div>
    <!-- 人气 -->
    <ul>
      <li v-for="(item,index) in populList" :key="index" @click="$router.push('/xiangqing/'+item.id)">
        <img :src="item.pic" alt />
        <p v-html="item.name"></p>
        <p>{{item.characteristic}}</p>
        <p>￥{{item.originalPrice}}</p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["populList"],
  created() {},
  mounted() {},
  methods: {

  },
};
</script>

<style scoped lang="less">
ul {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  li {
    width: 3.36rem;
    height: 5.56rem;
    img {
      width: 3.36rem;
      height: 4.32rem;
      display: block;
    }
    > p:nth-child(2) {
      font-size: 0.2rem;
      width: 2rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    > p:nth-child(3) {
      font-size: 0.14rem;
      color: #b2b2b2;
      width: 2rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin-top: 0.1rem;
    }
    > p:nth-child(4) {
      font-size: 0.16rem;
      color: #d00000;
      margin-top: 0.1rem;
    }
  }
}
</style>
